// #ifndef VUE3
import Vue from 'vue';
import Vuex from 'vuex';
import user from '@/store/modules/user.js';
import publicModule from '@/store/modules/public.js';
import getters from './getters.js';

Vue.use(Vuex);

const store = new Vuex.Store({
	modules: {
		user,
		public: publicModule
	},
	getters
});

export default store;
// #endif

// #ifdef VUE3
import {
	createStore
} from 'vuex';
import user from '@/store/modules/user.js';
import publicModule from '@/store/modules/public.js';
import getters from './getters.js';

const store = createStore({
	modules: {
		user,
		public: publicModule
	},
	getters
});

export default store;
// #endif